<?php
include_once '../coresection/checkA.php';
include_once("../../config.php");
$host = $_SERVER['HTTP_HOST']; //取得进入所输入的域名
$theme_folder = host_theme($host);
include_once '../../front/' . $theme_folder . '/connection.php';
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'product'");
?>

<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
?>



<?php
$new_detail_nid=$_GET['nid'];

//设置需要搜索的表格的前缀后缀
$table_suffix=$plate['table_suffix'];
$table=$table_Prefix.$table_suffix;
//设置需要搜索的表格的前缀后缀


$sql = " DELETE FROM $table WHERE nid=$new_detail_nid";
$query=mysql_query($sql) or die ('删除数据失败');
mysql_close($con);

echo 1;//表示成功


?>


